\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{cours}

\LoadClass[a4paper,twoside,11pt]{report}

\RequirePackage[utf8x]{inputenc}
\RequirePackage[T1]{fontenc}
\RequirePackage[francais]{babel}
\RequirePackage{url}
\RequirePackage{amsmath}
\RequirePackage{amsfonts}
\RequirePackage{multicol}
\RequirePackage[Glenn]{fncychap}
\RequirePackage[francais]{minitoc}
\RequirePackage{graphicx}
\RequirePackage{fancyhdr}
\RequirePackage{geometry}

\geometry{margin=75pt}

\newcommand{\B}{\mathbb{B}}
\newcommand{\F}{\mathbb{F}}
\newcommand{\R}{\mathbb{R}}
\newcommand{\N}{\mathbb{N}}
\newcommand{\Z}{\mathbb{Z}}

\makeatletter
\renewcommand\tableofcontents{%
    \if@twocolumn
        \@restonecoltrue\onecolumn
        \else
        \@restonecolfalse
        \fi
        \chapter*{\contentsname}%
        \@mkboth{%
            \MakeUppercase\contentsname}{\MakeUppercase\contentsname}%
            \@starttoc{toc}%
            \if@restonecol\twocolumn\fi
}
\makeatother

\fancyhead{}
\fancyhead[RO,LE]{\textsc{Amicale des informaticiens de l'université de Strasbourg}}
\renewcommand{\headrulewidth}{0.4pt}
\fancyfoot{}
\fancyfoot[RO,LE]{\thepage}
\fancyfoot[LO,RE]{\textsc{Université de Strasbourg}}
\renewcommand{\footrulewidth}{0.4pt}

\AtBeginDocument{
    \dominitoc

        \thispagestyle{empty}
    \maketitle
        \thispagestyle{empty}
    \cleardoublepage
        \tableofcontents
        \pagestyle{fancy}}

